<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<table class="display" id="example">
    <thead>
    <tr>
        <th>选择</th>
        <th><strong>考核项目</strong></th>
        <th><strong>打分说明</strong></th>
        <th>所占比率</th>
        <th>考核周期</th>
        <th><strong>数据输入人</strong></th>
        <th>数据审核人</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <s:if test="#request.examQuanItemSets==null || #request.examQuanItemSets.size<=0">
        <tr class="gradeA">
            <td colspan="8">暂无数据</td>
        </tr>
    </s:if>
    <s:else>
        <s:iterator value="#request.examQuanItemSets" var="item" status="sta">
            <s:if test="#sta.even"> <tr class="gradeA"> </s:if><s:else> <tr class="gradeC"></s:else>
            <td><input type="checkbox" id="check_item" name="check_item" value="${item.id}"/></td>
            <td>${item.title}</td>
            <td>${item.remark}</td>
            <td>
                <div class="progress" id="progress1"><span style="width: ${item.percentage}%;"><b>${item.percentage}%</b></span></div>
            </td>
            <td>${item.periodType.name}</td>
            <s:if test="#request.item.dataEntierType == 1 and #request.item.dataEntrier != null">
                <td>${item.dataEntrier.baseId.name}</td>
            </s:if>
            <s:elseif test="#request.item.dataEntierType == 2 and #request.item.dataEntryDuty != null">
                <td>${item.dataEntryDuty.dutyName}</td>
            </s:elseif>
            <s:else><td></td></s:else>

            <s:if test="#request.item.dataAuditerType == 1 and #request.item.dataAuditer != null">
                <td>${item.dataAuditer.baseId.name}</td>
            </s:if>
            <s:elseif test="#request.item.dataAuditerType == 2 and #request.item.dataAuditDuty != null">
                <td>${item.dataAuditDuty.dutyName}</td>
            </s:elseif>
            <s:else><td></td></s:else>

            <td style="width:12%">
                <a class="button" href="#exam/itemset_setup_add.xhtml?examitem.id=${item.id}&organizationId=${item.duty.organization.topOrganization.id}&examQuanSet.duty.id=${examQuanSet.duty.id}&examQuanSet.id=${examQuanSet.id}&ap=${maxRate}">
                    <span style="background:url(${ctx}/images/img/page_edit.png)" class="icon">&nbsp;</span>修改
                </a>
            </td>
            </tr>
        </s:iterator>
    </s:else>

    </tbody>
</table>
              